<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style type="text/css">
        table {border-collapse: collapse; font-size: 14px; width: 80%; margin: auto}
        table, th, td {border: 1px solid darkslategray;padding: 10px}
    </style>
</head>
<body>
<span style="color: darkslategray; font-size: 30px">欢迎光临！</span>
<!--<button><a th:href="@{/cl/toAdd}">新增</a></button>-->
<form th:action="@{/cl/findGL}">
    请输入搜索内容:
    <input type="text" name="name">
    <input type="submit" value="搜索">
</form>
<hr/>
<table class="clList">
    <tr>
        <th>id</th>
        <th>车牌号</th>
        <th>ETC卡号</th>
        <th>余额</th>
        <th>用户名</th>
        <th>使用年限</th>
        <th>操作</th>
    </tr>
    <tr th:each="cl : ${clList}">
        <td th:text="${cl.id}"></td>
        <td th:text="${cl.cph}"></td>
        <td th:text="${cl.etckh}"></td>
        <td th:text="${cl.money}"></td>
        <td th:text="${cl.name}"></td>
        <td th:text="${cl.time}"></td>
        <td>
            <!--<a  th:href="@{/cl/toEdit(id=${cl.id})}">修改</a>-->
            <!--<a th:href="@{/cl/del(id=${cl.id})}">删除</a>-->
            <a th:href="@{/cl/tx(id=${cl.id})}">提醒</a>
        </td>
    </tr>
</table>
</body>
</html>